package com.eunion.web.cms.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@Table(name = "t_question_img")
@NamedQuery(name = "TQuestionImg.findAll", query = "SELECT t FROM TQuestionImg t")
public class TQuestionImg {

	@Id
	private int id;

	private int qid;

	private int type;

	private String imgurl;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getQid() {
		return qid;
	}

	public void setQid(int qid) {
		this.qid = qid;
	}

	public String getImgurl() {
		return imgurl;
	}

	public void setImgurl(String imgurl) {
		this.imgurl = imgurl;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public TQuestionImg(int id, int qid, int type, String imgurl) {
		super();
		this.id = id;
		this.qid = qid;
		this.type = type;
		this.imgurl = imgurl;
	}

	public TQuestionImg() {
		super();
	}

	@Override
	public String toString() {
		return "TQuestionImg [id=" + id + ", qid=" + qid + ", type=" + type + ", imgurl=" + imgurl + "]";
	}

}
